package cn.tedu.weibo.service;

import cn.tedu.weibo.pojo.dto.WeiboDTO;
import cn.tedu.weibo.pojo.vo.WeiboDetailVO;
import cn.tedu.weibo.pojo.vo.WeiboIndexVO;
import org.hibernate.validator.constraints.Range;

import javax.servlet.http.HttpSession;
import javax.validation.constraints.Size;
import java.util.List;

public interface IWeiboService {
    int insert(WeiboDTO weiboDTO, Long id);

    List<WeiboIndexVO> selectIndex();

    WeiboDetailVO selectById(
            @Range(min = 1,max = 1000,message = "微博id范围1-1000") Long id,
            @Size(min = 1,max = 1000,message = "用户名username范围1-1000") String username
    );


}
